﻿using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Api.Core.Model.User
{
    [SugarTable("base_user")]
    public class UserEntity
    {
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
        public string UserId { get; set; }
        /// <summary>
        /// UserName
        /// </summary>       
        [SugarColumn(ColumnName = "username", IsNullable = true)]
        public string UserName { get; set; }
        /// <summary>
        /// Password
        /// </summary>       
        [SugarColumn(ColumnName = "password", IsNullable = true)]
        public string Password { get; set; }
        /// <summary>
        /// RoleId
        /// </summary>       
        [SugarColumn(ColumnName = "roleid", IsNullable = true)]
        public int? RoleId { get; set; }
        /// <summary>
        /// IsDel
        /// </summary>       
        [SugarColumn(ColumnName = "isdel", IsNullable = true)]
        public bool IsDel { get; set; }
        /// <summary>
        /// supp_address
        /// </summary>       
        [SugarColumn(ColumnName = "supp_address", IsNullable = true)]
        public int? SuppAddress { get; set; }
        /// <summary>
        /// remark
        /// </summary>       
        [SugarColumn(ColumnName = "remark", IsNullable = true)]
        public string Remark { get; set; }
        /// <summary>
        /// rate_class
        /// </summary>       
        [SugarColumn(ColumnName = "rate_class", IsNullable = true)]
        public int? RateClass { get; set; }
        /// <summary>
        /// create_date
        /// </summary>       
        [SugarColumn(ColumnName = "create_date", IsNullable = true)]
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// admin_id
        /// </summary>       
        [SugarColumn(ColumnName = "admin_id", IsNullable = true)]
        public int? AdminId { get; set; }
    }
}
